Skip to content

fix bullet list render compatibility with latest ms word version#2770

Open
jgiacomello wants to merge 3 commits intoPHPOffice:masterfrom
jgiacomello:bullet_list_render
Open

fix bullet list render compatibility with latest ms word version#2770
jgiacomello wants to merge 3 commits intoPHPOffice:masterfrom
jgiacomello:bullet_list_render

Conversation

@jgiacomello
Copy link
Copy Markdown
Contributor

Description

I noticed that creating a file from html unordered lists rendered symbols differently than the MS Word default.

Example code:

<ul>
    <li>lista 1</li>
    <li>lista 1<ul>
            <li>lista 2</li>
            <li>lista 2<ul>
                    <li>lista 3</li>
                </ul>
            </li>
            <li>lista 2</li>
        </ul>
    </li>
    <li>lista 1</li>
    <li>lista 1</li>
</ul>

result with current library version:
image

result with fixes:
image

I'm using this MS Word version: Microsoft® Word for Microsoft 365 MSO (Version 2502)

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 31, 2025

Coverage Status

coverage: 96.757%. remained the same
when pulling a38f898 on jgiacomello:bullet_list_render
into 0ab0b49 on PHPOffice:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants